Component({
    behaviors: ['wx://component-export'],
    properties: {
        color: {
            type: String,
            value: 'var(--themColor)'
        },
        loading: {
            type: Boolean,
            value: false
        }
    },
    methods: {
        button_click() {
            this.triggerEvent('click')
        }
    },
    ready() {
        const timeId = setTimeout(() => {
            let { height } = this.selectComponent('.bar_bottom')
            this.data.height = height
            clearTimeout(timeId)
        }, 600)
    },
    data: {
        height: 0,
    },
    export () {
        return { height: this.data.height }
    },
})